Integrand size = 45, antiderivative size = 177 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {a^{3/2} (2 B+3 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {a^2 (8 A+6 B-3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}-\frac {a (2 A-3 C) \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}} \]
[Out]
Time = 0.62 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4171, 4103, 4100, 3886, 221} \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {a^{3/2} (2 B+3 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {a^2 (8 A+6 B-3 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{3 d \sqrt {a \sec (c+d x)+a}}-\frac {a (2 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}{3 d}+\frac {2 A \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{3 d \sqrt {\sec (c+d x)}} \]
[In]
[Out]
Rule 221
Rule 3886
Rule 4100
Rule 4103
Rule 4171
Rubi steps \begin{align*} \text {integral}& = \frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {2 \int \frac {(a+a \sec (c+d x))^{3/2} \left (\frac {3}{2} a (A+B)-\frac {1}{2} a (2 A-3 C) \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx}{3 a} \\ & = -\frac {a (2 A-3 C) \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {2 \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (8 A+6 B-3 C)+\frac {3}{4} a^2 (2 B+3 C) \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx}{3 a} \\ & = \frac {a^2 (8 A+6 B-3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}-\frac {a (2 A-3 C) \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {1}{2} (a (2 B+3 C)) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {a^2 (8 A+6 B-3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}-\frac {a (2 A-3 C) \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}-\frac {(a (2 B+3 C)) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {a^{3/2} (2 B+3 C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {a^2 (8 A+6 B-3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}-\frac {a (2 A-3 C) \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}} \\ \end{align*}
Time = 7.10 (sec) , antiderivative size = 157, normalized size of antiderivative = 0.89 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {a^2 \left (6 B \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)-9 C \arcsin \left (\sqrt {\sec (c+d x)}\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)+\sqrt {1-\sec (c+d x)} (2 A \sin (c+d x)+(10 A+6 B+3 C \sec (c+d x)) \tan (c+d x))\right )}{3 d \sqrt {-((-1+\sec (c+d x)) \sec (c+d x))} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(384\) vs. \(2(153)=306\).
Time = 1.94 (sec) , antiderivative size = 385, normalized size of antiderivative = 2.18
method | result | size |
parts | \(\frac {2 A a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\sin \left (d x +c \right )+5 \tan \left (d x +c \right )\right )}{3 d \left (\cos \left (d x +c \right )+1\right ) \sec \left (d x +c \right )^{\frac {3}{2}}}+\frac {B a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+\sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )-2 \cot \left (d x +c \right )+2 \csc \left (d x +c \right )\right )}{d \sqrt {\sec \left (d x +c \right )}}-\frac {C a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \sqrt {\sec \left (d x +c \right )}\, \left (3 \cos \left (d x +c \right ) \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+3 \cos \left (d x +c \right ) \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )-2 \sin \left (d x +c \right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\right )}{2 d \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\) | \(385\) |
default | \(\frac {a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \sec \left (d x +c \right )^{\frac {3}{2}} \left (6 B \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{3}+6 B \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{3}+9 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{3}+9 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{3}+4 A \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )+6 B \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{2}+6 B \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{2}+9 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{2}+9 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )^{2}+20 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )+12 B \sin \left (d x +c \right ) \cos \left (d x +c \right )^{2}+6 C \cos \left (d x +c \right ) \sin \left (d x +c \right )\right )}{6 d \left (\cos \left (d x +c \right )+1\right )}\) | \(640\) |
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 404, normalized size of antiderivative = 2.28 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\left [\frac {3 \, {\left ({\left (2 \, B + 3 \, C\right )} a \cos \left (d x + c\right ) + {\left (2 \, B + 3 \, C\right )} a\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {4 \, {\left (2 \, A a \cos \left (d x + c\right )^{2} + 2 \, {\left (5 \, A + 3 \, B\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{12 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, \frac {3 \, {\left ({\left (2 \, B + 3 \, C\right )} a \cos \left (d x + c\right ) + {\left (2 \, B + 3 \, C\right )} a\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac {2 \, {\left (2 \, A a \cos \left (d x + c\right )^{2} + 2 \, {\left (5 \, A + 3 \, B\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{6 \, {\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1455 vs. \(2 (153) = 306\).
Time = 0.52 (sec) , antiderivative size = 1455, normalized size of antiderivative = 8.22 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}{\sec \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]